<?php 
    global $baseurl;
    $masterView = $this->view;
    $statuses = $masterView->statuses;
    if (is_array($statuses))
    foreach($statuses as $status) :
        $date = new DateTime($status->datecreated);
?>
<li id="screenshot-1345671" class="group ">
    <div class="dribbble">
        <div class="dribbble-shot">
            <div class="dribbble-img">
                <a href="<?php echo $baseurl.'shots/'.$status->photo->alias ?>" class="dribbble-link"><div data-picture="" data-alt="Play">
                    <img alt="Play" src="<?php echo $baseurl.$status->photo->url ?>"></div>
                </a>
                <a href="<?php echo $baseurl.'shots/'.$status->photo->alias ?>" class="dribbble-over" style="opacity: 0;"><strong><?php echo $status->title ?></strong><span class="comment"><?php echo $status->content ?></span>
                    <em class="timestamp"><?php echo $date->format("F d Y") ?></em>
                </a>
            </div>

            <ul class="tools group" style="visibility: visible;">
                <li class="fav">
                    <a href="<?php echo $baseurl.'shots/'.$status->photo->alias ?>/fans" title="See fans of this screenshot"><?php echo $status->likes ?></a>
                </li>
                <li class="cmnt">
                    <a href="<?php echo $baseurl.'shots/'.$status->photo->alias ?>#comments" title="View comments on this screenshot"><?php echo $status->replies ?></a>
                </li>
                <li class="views"><?php echo $status->view ?></li>
            </ul>
        </div>
    </div>

    <h2>
        <span class="attribution-user">
            <a href="<?php echo $baseurl.$status->user->username ?>" class="url" rel="contact" title="<?php echo $status->user->name ?>"><img alt="<?php echo $status->user->name ?>" class="photo" src="<?php echo $baseurl.$status->avatar->url ?>"><?php echo $status->user->name ?></a>
        </span>
    </h2>
</li>
<?php endforeach; ?>